package com.aaa.day03.mystatic;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2024/11/13 11:22
 * @description：计算机类
 * @modified By：
 * @version: 1.0
 */
public class MyComputer {
    String  type;
    int price;
    String dec;

    public MyComputer() {
    }

    public MyComputer(String type, int price, String dec) {
        this.type = type;
        this.price = price;
        this.dec = dec;
    }
    public static void seeMovie(){

    }
    public  void add(int a,int b){
        byte[] c= {1};
        int d=2;
      /*  String e= new String(c,d);*/
       // e.charAt()

    }

    public static void main(String[] args) {
  /*      String name=new String ("chenjian");
        String s = name.toUpperCase();
        System.out.println(s);*/
        String  s1="abc";
        String  s3="abc";
        String s2= new String ("abc");
        System.out.println(s2==s3);
        System.out.println(s3.equals(s2));
       /* s1==s2      false
        s1.equals(s2)   true*/
    }
}
